Page({
  data: {},
  onLoad() {
    //   my.call('useSystemSkill', {
    //   skillName: 'chat'
    // })
  },
  onShow(){
     my.call('useCustomSkill', {
      skillName: '2021002178679198',
      secretKey: '91b479dd-0a9e-4091-8b15-11412cc9774a',
      pageId: 'pages/demo/demo'
    })
  },
  onVoiceEvent(event){
     my.alert({content: "onVoiceEvent = " + JSON.stringify(event)}); 
   
  },
   toPage(pageUrl) {
    my.redirectTo({
      url: pageUrl
    })
  },
});
